package org.example.blogserver.controller;

import org.example.blogserver.service.ArticleService;
import org.example.blogserver.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("community-center")public class CommunityCenterController {
    @Autowired
    private ArticleService articleService;
    @GetMapping("/view")
    public Result findArticlesByIsPublic(){
        return articleService.findArticlesByIsPublic(true);
    }

}
